package com.activity.controller;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.activity.model.Packages;
import com.activity.service.SavePackageService;

@Controller
public class SavePackageController {
	
	@Resource(name="savePackageService")
    private SavePackageService savePackageService;
	
	@RequestMapping(value="activity/querypackages.do")
	@ResponseBody
	public List<Packages> querypackages() {
		return savePackageService.querypackages();
	}
	
 
}

